from ZScreen import screen
from lib.ZNode import ZNode


class ZScene ( ZNode ) :
	def __init__ ( self ) :
		super ( ZScene , self ).__init__ ( )
		self.father = screen

	def update ( self , event , pos , key ) :
		if self._running :
			if len ( self.children ) :
				for x in self.children :
					x.update ( event , pos , key )

	def stop ( self ) :
		self._running = False

	def play ( self ) :
		self._running = True
